home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19970929-19971216
/
000210_news@newsmaster….columbia.edu _Fri Oct 31 02:11:01 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-12-15
|
4KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id CAA21976
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 31 Oct 1997 02:11:00 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id CAA28988
for kermit.misc@watsun; Fri, 31 Oct 1997 02:10:59 -0500 (EST)
Path: news.columbia.edu!sol.ctr.columbia.edu!spool.mu.edu!uwm.edu!vixen.cso.uiuc.edu!howland.erols.net!newsfeed.internetmci.com!207.206.0.75!streamer1.cleveland.iagnet.net!iagnet.net!news-w.ans.net!newsfeeds.ans.net!tmpsu003.tmpprv.allied.com!asbe05.phx1.aro.allied.com!tmpsp002.tmpprv.allied.com!snowhite.mto.allied.com!usenet
From: "John M. Ritter" <jmr@alliedsignal.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Need help with Kermit script
Date: Thu, 30 Oct 1997 10:25:33 -0500
Organization: AlliedSignal Inc.
Lines: 58
Message-ID: <3458A6ED.F555C0D0@alliedsignal.com>
Reply-To: jmr@snowhite.mto.allied.com
NNTP-Posting-Host: jmr.mto.allied.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.03 [en] (WinNT; U)
Xref: news.columbia.edu comp.protocols.kermit.misc:7993
I am trying, for the first time, to write a script that logs onto a
service and captures data to a file using C-Kermit 6.0.192, 6 Sep 96,
for UnixWare 2. There are a few things that are confusing me, and I'd
appreciate some pointers.
1. Since this will run on different systems in different directories,
via cron, a shell script kicks off the session with:
kermit -E -H -l /dev/term/a08m -b 38400 -m usrobotics -y ./.kermitrc
The problem is, if the first command is DIAL phone-number, kermit
complains: Sorry, you must SET MODEM first
Huh? if I SHOW MODEM, everything is OK. Why can't I jump right in
to a dial command? Of course, if I manually SET MODEM, then it
complains Sorry, you must SET LINE first (and ditto for SPEED).
2. This service is accessed via SprintNet. After connecting to the
service, I get trampled with escape codes to clear the screen, change
text colors and dozens of backspaces. The login prompt looks like:
999999 CONNECTED^M
^[[2J^H^H^H^H ^[[6n^[[5n^[[0c^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^
H^H^H^H^H^H^H^H^H ^[[12h^H^H^H^H^H^H^H^H^H^H^H^H
^[[32m^H^H^H^H^H^H^H^H ^M
^M
311061100020 14400:8T 128x2,PTRA W002-R5020200#0012 CONNECTED^M
^[[31m^H^H^H^H^H ^M
WE AUTHORIZE USE OF THIS SERVICE ONLY THROUGH EXPRESS WRITTEN PERMISSION.^M
UNAUTHORIZED ACCESS OR USE IS A VIOLATION OF LAW. ^[[37m^H^H^H^H^H ^M
ENTER COMPANY ID?^MENTER COMPANY ID? (company id gets entered here)
ENTER USER ID?BBBBBBBBBBBBBBBBB^MENTER USER ID?XXXXXXXXXXXXXXXXX^MENTER USER
ID?^MENTER USER ID? (user id gets entered here)
Using the examples from the book (See? I bought the book!! Both
editions too!) and a plain INPUT, I never seem to find the prompt.
What seems to work fairly well is clearing the buffer and performing
a \Frindex on \v(input), but the escape codes *still* end up getting
back to either the kermit command prompt or a UNIX prompt.
There must be a simpler way to scan for this pattern!
3. The section "Downloading to C-Kermit" has an example of grabbing a
lasagna recipe, but only gives a hint on automating it. I tried to
get back to a kermit prompt from a script using OUTPUT \v(escape)C
(Why isn't this listed in the table of built-in variables??) and do
the log session, but when all is done, the session log file is zero
bytes.
Does anybody have an example of this that actually works?
Any help on these steps would be *greatly* appreciated!
-------------------------------------------------------------------------------
"I enjoy working with human beings, and John M. Ritter
have stimulating relationships with them." AlliedSignal Inc.
- HAL 9000 Manager, Application Development
jmr@snowhite.mto.allied.com
-------------------------------------------------------------------------------